package com.java.day05.homework;

/**
 * 用户
 *
 */
public class User {
    /**
     * 属性:
     * userName 用户名
     * password 密码
     */
    private String userName;
    private String password;

    /**
     * 构造方法
     * 无参
     * 有参
     */
    public User(){

    }

    public User(String userName,String password){
        this.userName = userName;
        this.password = password;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
